import Vue from 'vue'
import Router from 'vue-router'
import one from '@/pages/one'
import two from '@/pages/two'
import three from '@/pages/three'
import login from '@/components/login'
import retrieve from '@/components/retrieve'
import register from '@/components/register'
import play from '@/pages/play'

Vue.use(Router)

// export default new Router({
  let routes = [
    {
      path: '/',
      name: '第一页',
      component: one
    },
    {
      path: '/two',
      name: '第二页',
      component: two
    },
    {
      path: '/three',
      name: '第三页',
      component: three
    },
    {
      name: '登录',
      path: '/login',
      component: login
    },
    {
      name: '找回密码',
      path: '/retrieve',
      component: retrieve
    },
    {
      name: '注册',
      path: '/register',
      component: register
    },
    {
      name: 'play',
      path: '/play',
      component: play
    }
  ]
// })

const router = new Router({
  model: 'hash',
  base: __dirname,
  routes
})

export default router
